package model

import (
	"gorm.io/gorm"
)

// 群对象(表)
type ChatGroup struct {
	gorm.Model
	Name    string `json:"name" form:"name"` // 群名称
	Icon    string `json:"icon" form:"icon"` // 群头像
	User    User   `gorm:"foreignKey:OwnerId"`
	OwnerId uint   `json:"ownerId" form:"ownerId"` // 群主
	Desc    string `json:"desc" form:"desc"`       // 群信息
}
